import {axios} from '@/utils/request'
export  function getPackage(params){
    return axios({
        url:'/package/list',
        method:'get',
        params:params
    })
}
export function getrPackageDetail(params){
    return axios({
        url:'/package/getConsultPackageList',
        method:'get',
        params:params
    })
}

//套餐列表2  
export function getPackageDetailList(params) {
    return axios({
      url: `/package/packageDetail/list`,
      method: 'get',
      params: params
    })
}

export function addPackage(data){
    return axios({
        url:'/package/add',
        method:'post',
        data:data
    })
}
export function editDetail(params){
    return axios({
        url:'/package/getUpdatePackageList',
        method:'get',
        params:params
    })
}
export function editPackage(data){
    return axios({
        url:'/package/edidPackage',
        method:'post',
        data:data
    })
}
export function removeItem(params){
    return axios({
        url:'/package/packageDetail/remove',
        method:'get',
        params:params
    })
}
export function search(params){
    return axios({
        url:'/package/getFuzzyQueryPackage/list',
        method:"get",
        params:params
    })
}
export function searchType(params){
    return axios({
        url:'/package/getItmeProductList',
        method:'get',
        params:params
    })
}
